#ifndef GRAPHWIDGET_H
#define GRAPHWIDGET_H

#include <QtGui>

class GraphWidget : public QFrame
{
public:

	static const qreal MARGIN;
	static const qreal FONT_BASE;
	static const qreal FONT_HEIGHT_DIVIDER;
	static const int ALIGN_LEFT;
	static const int ALIGN_RIGHT;

	static const QPen LINE_PEN;
	static const QPen TEXT_PEN;

	GraphWidget(QWidget* parent);

	void setData(const QList<QPair<uint, double> >&);

protected:
	void paintEvent(QPaintEvent*);

private:
	QList<QPair<uint, double> > m_data;
};

#endif // GRAPHWIDGET_H
